Minimum move touch plane scanning method and device

ABSTRACT

A method of determining a type of touch plane operator input device comprises sensing the impedance across first and second terminals of a touch plane operator input device to distinguish the touch plane operator input device as being one of at least two different types of touch plane operator input devices. A method of processing an input from a touch plane operator input device comprises determining a first location of a first touch on the touch plane operator input device; determining a second location of a second touch on the touch plane operator input device; comparing the first and second locations to obtain an indication of an amount of difference between the first and second locations; and determining whether the indication of the amount of difference exceeds a predetermined amount. These steps are performed by discrete logic circuitry that provides an event notification to a microprocessor when the indication of the amount of difference exceeds the predetermined amount. An interface circuit for a touch plane operator input device comprises a digital signal processor that includes a data processing path along which data from a touch plane operator input device passes while being processed by the digital signal processor. The interface circuit is capable of processing data from first and second different types of touch plane operator input devices. The data path is a common data processing path that is the same for input data for both of the first and second types of touch plane operator input devices.

CROSS-REFERENCE TO RELATED APPLICATIONS

This application is a continuation of U.S. patent application Ser. No.09/675,863, filed Sep. 29, 2000, and entitled, “MINIMUM MOVE TOUCH PLANESCANNING METHOD AND DEVICE.” The entirety of the aforementionedapplication is incorporated herein by reference.

BACKGROUND OF THE INVENTION

1. Field of the Invention

This invention relates to interface circuits for touch screens. Thisinvention also relates to methods of processing inputs from touchscreens. This invention also relates to integrated circuits that includeinterfaces for touch screens.

2. Description of Related Art

Touch plane operator input devices, such as touch screens and touchpads, are known. Typically, a touch plane operator input device providesa generally planar surface that is sensitive to the touch of an operatorand is operative to provide one or more output signals indicative of thelocation of the touch on the plane. The output signals may be basedeither on the raw data from a touch screen sensor system, or may bebased on processed data that provides X-Y coordinate information of thetouch.

Touch screens are an enhanced type of computer display device thatinclude a touch plane operator input device. Touch screens are thereforecapable not only of displaying information to an operator, but also ofreceiving inputs from the operator. Touch screens have been put to usein a wide variety of applications. Such applications include consumerapplications such as personal digital assistants (PDAs), digital audioplayback systems, internet devices, and so on, as well as industrialapplications such as operator interfaces in industrial control systems.In some applications, the operator touch is made by a stylus or otherdevice held by the operator. In other applications, the operator touchesthe screen directly.

Touch pads are similar in operation to touch screens, except that theyare not used in connection with a display device. Touch pads are oftenplaced adjacent the space bar on laptop computers to allow operatorcontrol of a mouse pointer. Numerous other applications also exist.

For convenience, the discussion will now focus on touch screens, itbeing understood that the discussion is equally applicable to touch padsand other touch plane operator input devices. In many touch screensystems, a computer system is implemented using “system-on-chip”integrated circuits. In a single chip, these integrated circuits providemany of the functions that used to be spread among many integratedcircuits. For example, in addition to the main microprocessor, it is notuncommon to have other circuits such as specialized serial interfaces,UARTs, memory controllers, DMA controllers, Ethernet interfaces, displayinterfaces, USB (universal serial bus) interfaces, and so on, as well asa touch screen interface used to acquire data from a touch screen.

A problem that has been encountered with system-on-chip integratedcircuits adapted for use with touch screens is that there are manydifferent types of touch screens. For example, some touch screens arerelatively small (e.g., three inches or less) whereas other touchscreens are much larger (e.g., twenty inches or more). The interfacecharacteristics of large touch screens tend to be different becausevoltage feedback provisions are made to compensate for the effects ofresistance and temperature drift due to the larger screen size.Additionally, even within the feedback/nonfeedback categories of touchscreens, variations exist. As a result, it has been difficult to providea system-on-chip that is usable in a wide variety of touch screenapplications because different touch screen applications tend to usedifferent types of touch screens and different types of touch screenshave different interface characteristics.

FIGS. 1A-1D below show four different types of commonly employed analogresistive touch screens. In general, most analog resistive touch screenscomprise front and back resistive layers (often formed of indium tinoxide) that are pressed together when an operator touch is received. Theoperator touch causes the two layers to establish an electrical contactat a particular location on each layer. Therefore, by applying a voltageto one layer and reading the voltage established by electrical contacton the other layer, the location of the touch can be determined based onthe known characteristics of each layer.

For example, FIG. 1A is a schematic diagram of a 4-wire analog resistivetouch screen. As shown therein, the touch screen comprises an X-axisresistive layer 12 and a Y-axis resistive layer 14. The resistance ofthe layers 12 and 14 is shown schematically as four resistors. TheX-axis layer 12 further includes an X+ bus bar 16 that connects to an X+terminal 18 of the touch screen, and an X− bus bar 20 that connects toan X− terminal 22 of the touch screen. Similarly, the Y-axis resistivelayer further includes a Y+ bus bar 26 that connects to a Y+ terminal 28of the touch screen, and a Y− bus bar 30 that connects to a Y− terminal32 of the touch screen. The touch screen is scanned in the X-directionby applying a voltage across the X+ and X− bus bars 16 and 20, and thensensing the voltage that appears at one or both of the Y+ and Y−terminals 28 and 32. Assuming negligible current flow through the Y+ andY− terminals, the voltage at the Y+ and Y− terminals 28 and 32 should beapproximately the same and is determined by the X-coordinate of thepoint of electrical contact between the X-axis and Y-axis layers 12 and14, that is, by the X-coordinate of the touch. By comparing the voltageto values determined during calibration, the X-coordinate of the touchcan be determined. The Y-coordinate of the touch is then determined inthe same manner, except that a voltage is applied across the Y+ and Y−bus bars 26 and 30, and the resultant voltage that appears at one orboth of the X+ and X− terminals 18 and 22 is sensed. Of course, with alltouch screens, X and Y axis definitions are arbitrary and differentdefinitions can be coordinated with program code to determine screenposition.

FIG. 1B is a schematic diagram of an 8-wire analog resistive touchscreen. The 8-wire touch screen is the same as the 4-wire touch screen,except that four additional sX+, sX−, sY+ and sY− feedback terminals40-43 are provided. Typically, both 4-wire touch screens and 8-wiretouch screens use an analog-to-digital converter to sense the voltagesthat appear at the X+ and Y+ terminals. In the case of a 4-wire touchscreen, the reference voltage inputs to the analog-to-digital converterare connected directly to the same positive and ground terminals of apower supply that also applies voltages to the touch screen. In the caseof an 8-wire touch screen, the reference voltage inputs are connected tosX+ and sX− terminals 40 and 42 of the X+ and X− bus bars or to sY+ andsY− terminals 41 and 43 of the Y+ and Y− bus bars, respectively. ThesX+, sX−, sY+ and sY− terminals 40-43 are used for voltage feedback toeliminate the effects of resistance and temperature drift in the circuitcomponents.

FIG. 1C is a schematic diagram of a 5-wire analog resistive touchscreen. The 5-wire analog resistive touch screen includes a resistivelayer 52 and a wiper layer 54. The resistive layer includes V+, V−,Z+/−, and Z−/+ terminals 56-59 at the four opposing corners of the touchscreen. A constant voltage is applied to the V+ and V− terminals 56-57.The X and Y axes are scanned by applying a voltage at the Z+/Z− andZ−/Z+ terminals 58-59, and then reversing the polarity of the voltage toscan the other direction. The resulting two voltages produced at thewiper terminal 60 are indicative of the X and Y-positions of the touch.

FIG. 1D is a schematic diagram of a 7-wire analog resistive touchscreen. The 7-wire touch screen is the same as the 5-wire touch screen,except that two additional sV+ and sV− feedback terminals 61-62 areprovided. As with the sX+, sX−, sY+ and sY− feedback terminals 40-43,the sV+ and sV− feedback terminals 61-62 are used for voltage feedbackto eliminate the effects of resistance and temperature drift in thecircuit components.

Analog resistive touch screens are popular because they are inexpensiveand reliable. However, other types of touch screens are also common,such as capacitive touch screens and electrostatic touch screens.

In view of these different types of touch screens, a touch screeninterface that is compatible with these multiple different types oftouch screens would be highly advantageous. A touch screen interfacethat is capable of automatically detecting the type of touch screen towhich it is connected would also be highly desirable.

Another problem that has been encountered in connection with touchscreens is the processing overhead required to process information fromtouch screens. It is known to emulate a hardware mouse by moving a mousepointer across a touch screen in response to an operator touch thatmoves across the touch screen. It is desirable to have smooth andresponsive mouse pointer movement. Current techniques for obtaining asatisfactory level of responsiveness require a significant amount ofprocessor overhead, however, because the microprocessor scans the touchscreen directly or because the microprocessor must monitor a continuousstream of data from a separate scanning module or hardware. For example,dragging a cursor around the screen in random directions on a Microsoft®Windows™ NT system that supports hardware cursoring can register anadditional 3% to 7% of the processing power of a 300 MHz Pentium II™system under the task monitor program. By comparison, majorarchitectural or processor step changes usually provide only a 5% to 10%processing speed improvement. A touch screen interface that reduces theamount of microprocessor overhead required for hardware mouse emulationwould be advantageous. This is especially important in embeddedsolutions and PDAs where high power processors are less cost effective.Therefore, a touch screen interface that minimizes process or overheadwould also be highly advantageous, especially if it is capable ofdetecting the type of touch screen to which it is detected and/or iscompatible with multiple different types of touch screens.

Another ongoing challenge that has been encountered is trying to reducepower consumption to extend battery life in devices such as personaldigital assistants, laptop computers, portable internet access devices,and so on. A touch screen interface that decreases power consumptionwould therefore be highly advantageous.

SUMMARY OF THE INVENTION

According to one aspect of the invention, the invention relates to amethod of determining a type of a touch plane operator input devicecomprising sensing the impedance across first and second terminals of atouch plane operator input device to distinguish the touch screen asbeing one of at least two different types of touch plane operator inputdevices.

According to another aspect of the invention, the invention relates to amethod of processing an input from a touch plane operator input devicecomprising determining a first location of a first touch on the touchplane operator input device; determining a second location of a secondtouch on the touch plane operator input device; comparing the first andsecond locations to obtain an indication of an amount of differencebetween the first and second locations; and determining whether theindication of the amount of difference exceeds a predetermined amount.These steps are performed by discrete logic circuitry that provides anevent notification to a microprocessor when the indication of the amountof difference exceeds the predetermined amount.

According to yet another aspect of the invention, the invention relatesto an interface circuit for a touch plane operator input device, theinterface circuit comprising a digital signal processor that includes adata processing path along which data from a touch plane operator inputdevice passes while being processed by the digital signal processor. Theinterface circuit is capable of processing data from at least first andsecond different types of touch plane operator input devices. The datapath is a common data processing path that is the same for input dataregardless of which type of touch plane operator input device is used.

According to yet another aspect of the invention, the invention relatesto a method of acquiring an operator input from a touch plane operatorinput device having first and second touch-sensitive layers. The methodcomprises waiting for an operator touch to occur on the touch planeoperator input device; and then detecting that the operator touch hasoccurred and determining the location of the operator touch. The firstand second layers are substantially free of current flow during thewaiting step.

BRIEF DESCRIPTION OF THE DRAWINGS

FIGS. 1A-1D are schematic diagrams of analog resistive touch screens,appropriately labeled “prior art”;

FIG. 2 is a block diagram of a system-on-chip integrated circuit thatincludes a touch screen interface circuit;

FIG. 3 is a schematic diagram of the touch screen interface circuit ofFIG. 2 shown in greater detail;

FIGS. 4A-4B are flow charts showing the operation of the touch screeninterface circuit of FIG. 3 to determine a touch screen type;

FIGS. 5A-5D are schematic diagrams showing the configuration of thetouch screen interface circuit of FIG. 3 during different steps of theprocess of FIG. 4;

FIG. 6 is a flow chart of a scanning process used by the touch screeninterface circuit of FIG. 3;

FIG. 7 is a block diagram of a logic circuit that is used to implementthe process of FIG. 6;

FIGS. 8A-8D are schematic diagrams showing the configuration of thetouch screen interface of FIG. 3 during different steps of the scanningprocess of FIG. 6 for a first type of touch screen;

FIG. 9 is a representation of a minimum move notification systemembodied in the flowchart of FIG. 6;

FIG. 10 is a first industrial control system having an operatorinterface that incorporates the touch screen interface circuit of FIG.3; and

FIG. 11 is a second industrial control system having an operatorinterface that incorporates the touch screen interface circuit of FIG.3.

DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT 1. Construction ofTouch Screen Interface Circuit

Referring now to FIG. 2, FIG. 2 is a block diagram of an example of asystem-on-chip integrated circuit 70 that includes a touch screeninterface circuit 100 in accordance with a preferred embodiment of thepresent invention. The integrated circuit 70 includes a plurality ofdevices that are disposed on a peripheral bus 72 including one or moreuniversal asynchronous receiver-transmitters (UARTs) 73, one or moreserial interfaces 74 for interfacing to external devices (such asdigital to analog converters (DACs), audio controllers, and so on),interrupt controller/timers 75, a keypad interface 76, one or more I/Oports 77, and a touch screen interface circuit 100 (described in greaterdetail below). The integrated circuit 70 also includes a plurality ofdevices that are disposed on a processor bus 80 including one or moreuniversal serial bus (USB) host interfaces 81 for connection to USBdevices such as a keyboard, mouse, printer, and so on, an Ethernet port82, DMA controllers 83, a microprocessor 86, a display interface 87 (forexample, a raster engine), memory controllers 88 and 90, and boot ROM 89for storing program code executed during a boot-up sequence.

Referring now to FIG. 3, a portion of the preferred touch screeninterface circuit 100 of FIG. 2 is illustrated in greater detail. Theremainder of the preferred interface circuit is shown in FIG. 7,discussed in greater detail below. In FIG. 3, the interface circuit 100comprises an analog-to-digital (A/D) converter 102, an analog switchmatrix 104, and an inverting logic gate 106. The analog-to-digitalconverter 102 may be implemented using virtually any A/D conversiontechnique. In the illustrated embodiment, the A/D converter 102 is asuccessive approximation A/D converter or a delta sigma A/D converter.

The analog switch matrix 104 comprises twenty-eight analog switches,labeled SW0-SW27. The configuration of the switch matrix 104 iscontrolled by a plurality of registers including a DIRECT register 110,a DETECT register 112, a DISCHARGE register 114, an XSAMPLE register116, and a YSAMPLE register 118. Additional registers may also beutilized if it is desired to achieve additional functionality using theanalog switch matrix 104.

The registers 110-118 control the configuration of the analog switchmatrix. The configuration of the switch matrix 104 as shown in FIG. 3 ischaracterized by the following bit string: 0000 0100 0000 0000 0110 00100000. The bits in the foregoing bit string correspond to the open/closedstates of the switches SW0-SW27 in FIG. 3, with the number of the switch(0-27) indicating bit position and a “1” at a particular bit positionindicating that a particular switch is closed. Different configurationsof the analog switch matrix can be obtained with different bit strings.These bit strings may be stored in the registers 110-118 or,alternatively, may be provided directly by the microprocessor. As willbe described in greater detail below, each register controls 110-118 theconfiguration of the analog switch matrix 104 during a different mode ofoperation. Different values may be stored in the registers 112-118depending on which type of touch screen is used.

The analog switch matrix includes eight input/output (I/O) terminals120-134. The first terminal 120 is labeled “X+ or V+”, indicating thatthe terminal 120 is adapted to be operably connected to the X+ terminalof 4-wire and 8-wire touch screens, and is adapted to be operablyconnected to the V+ terminal of 5-wire and 7-wire touch screens. Thesecond terminal 122 is labeled “X− or V−”, indicating that the terminal122 is adapted to be operably connected to the X− terminal of 4-wire and8-wire touch screens, and is adapted to be operably connected to the V−terminal of 5-wire and 7-wire touch screens. The third terminal 124 islabeled “Y+ or Z+/−”, indicating that the terminal 124 is adapted to beoperably connected to the Y+ terminal of 4-wire and 8-wire touchscreens, and is adapted to be operably connected to the Z+/− terminal of5-wire and 8-wire touch screens. The fourth terminal 126 is labeled “Y−or Z−/+”, indicating that the terminal 126 is adapted to be operablyconnected to the Y-terminal of 4-wire and 8-wire touch screens and isadapted to be operably connected to the Z−/+ terminal of 5-wire and7-wire touch screens. The fifth terminal 128 is labeled “sX+ or sV+”,indicating that the terminal 128 is adapted to be operably connected tothe sX+ terminal of 8-wire touch screens and is adapted to be operablyconnected to the sV+ terminal of 7-wire touch screens. For 4-wire and5-wire touch screens, the terminal 128 is not utilized. The sixthterminal 130 is labeled “sX− or sV−”, indicating that the terminal 130is adapted to be operably connected to the sX− terminal of 8-wire touchscreens and is adapted to be operably connected to the sV− terminal of7-wire touch screens. For 4-wire and 5-wire touch screens, the terminal130 is not utilized. The seventh terminal 132 is labeled “sY+ or wiper”,indicating that the terminal 132 is adapted to be operably connected tothe sY+ terminal of 8-wire touch screens and is adapted to be operablyconnected to the wiper terminal of 7-wire touch screens. For 4-wire and5-wire touch screens, the terminal 132 is not utilized. Finally, theeighth terminal 134 is labeled “sY−”, indicating that the terminal 134is adapted to be operably connected to the sY− terminal of 8-wire touchscreens. For 4-wire, 5-wire and 7-wire touch screens, the terminal 134is not utilized.

The analog switch matrix 104 allows the terminals 120-134 to beselectively connected to V_(DD) and V_(SS) power supply terminals, to ananalog input of the A/D converter 102, and to the voltage referenceinputs of the A/D converter 102. In the case of the terminal 120, theterminal 120 can receive the V_(DD) power supply input either directly(SW11) or by way of a pull-up resistor (SW22). With the pull upresistor, the analog switch matrix 104 can supply the V_(DD) powersupply input to an I/O terminal of a touch screen in a way that allowsthe terminal 120 to be pulled low if the touch screen I/O terminal isconnected to ground (either directly or by way of touch screenresistance), or to be left high if no connection to ground exists. Asimilar arrangement is provided for the terminal 124. As will bedetailed below, this is one preferred way of enabling the touch screeninterface circuit to distinguish between different types of touchscreens.

2. Automatic Detection of Touch Screen Type

Referring now to FIGS. 4A-4B, two preferred methods of determining atouch screen type is illustrated. The touch screen interface circuit 100is capable of receiving input data from a variety of types of touchscreens, and it is desirable that the touch screen interface circuit 100be able automatically determine the touch screen type to which it isconnected. This can be accomplished by sensing the impedancecharacteristics of the touch screen. FIGS. 4A-4B describe two exemplarymethods that can be performed during a boot-up sequence of a device thatincorporates the interface circuit 100 to determine a touch screen type.

Referring first to FIG. 4A, at step 150, it is first determined whethera touch screen is connected to the interface circuit 100. FIG. 5A showsthe configuration of the analog switch matrix 104 during step 150. Thefollowing table summarizes the operation of the analog switch matrix 104during step 150:

STEP REGISTER EFFECT TEST RESULT 150 047F601 Pull X+ high, Short ADC Low= Touch X−, Y+, Y−, sX+, conversion screen connected sX−, sY+, sY− to onX+ High = No VSS touch screen connectedThe value stored in the DIRECT register 110, which changes throughoutthe processes of FIGS. 4A-4B, controls the configuration of the analogswitch matrix 104 during the processes of FIGS. 4A-4B. The value storedin the DIRECT register 110 during step 150 is 047F601 (hexadecimal) or0000 0100 0111 1111 0110 0000 0001 (binary). When the analog switchmatrix 104 is programmed with this value, the effect is to pull X+ highand to short the X−, Y+, Y−, sX+, sX−, sY+, and sY− terminals 122-134 toV_(SS), as described in the table. The A/D converter 102 then performsan A/D conversion on the X+ terminal 120.

If a touch screen is connected, then the touch screen establishes aconnection between the X+ and X− terminals 120 and 122 (i.e., in thecase of a 4-wire or 8-wire touch screen, or the V+ and V− terminals inthe case of a 5-wire or 7-wire touch screen), causing the X+ terminal tobe pulled low. If no touch screen is connected, then no connection isestablished between the X+ and X− terminals 120 and 122, and the X+terminal 120 remains pulled high. The X+ terminal 120 is also connectedto the input of the A/D converter 102 and, therefore, the voltage at theX+ terminal 120 can be measured using the A/D converter 102 to determinewhether a touch screen is connected. If no touch screen is connected,then the auto detect process terminates, and, for example, the user maybe notified that no touch screen has been detected.

Assuming a touch screen is connected, it is next determined at step 152whether an 8-wire touch screen is connected or whether another type oftouch screen is connected. FIG. 5B shows the configuration of the analogswitch matrix 104 during step 152. The following table summarizes theoperation of the analog switch matrix 104 during steps 152-156:

STEP REGISTER EFFECT TEST RESULT 152 0840604 Pull Y+ high, Short ADCHigh = Other sY− to VSS conversion type of touch on Y+ screen connectedLow = 8-wire touch screen connected 154 0401601 Pull X+ high, Shortcheck that Operational X− to VSS X+ is low 154 0408601 Pull X+ high,Short check that Operational sX+ to VSS X+ is low 154 0410601 Pull X+high, Short check that Operational sX− to VSS X+ is low 154 0804604 PullY+ high, Short check that Operational Y− to VSS Y+ is low 154 0820604Pull Y+ high, Short check that Operational sY+ to VSS Y+ is low 1560402601 Pull X+ high, Short ADC Low = touch Y+ to VSS conversion screenpressed on X+ or shorted High = No touch screen press

If an 8-wire touch screen is connected, then the Y+ terminal 120 ispulled low because the sY− terminal establishes a connection to ground.For all other touch screen types, the sY− terminal is unused andtherefore the Y+ terminal remains high. As a result, when the switchmatrix 104 is configured as shown in FIG. 5B, the voltage at the Y+terminal 120 can be measured using the A/D converter 102 to determinewhether an 8-wire touch screen is connected.

If an 8-wire touch screen is connected, then the process proceeds tostep 154, where it is determined whether the touch screen is operatingproperly. The various configurations for the analog switch matrix 104are set forth in the table above. If all the conditions in the table aremet, then the touch screen is operating properly; otherwise, the touchscreen is not operating properly.

Next, at step 156, it is determined whether the touch screen is pressed.This feature may be useful, for example, to give the operator the optionto proceed to a “setup” screen during a boot-up process. To perform thistest, the X+ terminal 120 is pulled high and the Y+ terminal 124 isconnected to the ground terminal, and it is determined whether the X+terminal 120 is high or low (i.e., whether the X-axis layer is touchingthe Y-axis layer). If the X+ terminal 120 is low, then the touch screenis pressed (although an alternative reason may be that the touch screenis shorted). If the X+ terminal 120 is high, then the touch screen isnot pressed.

If it is determined at step 152 that an 8-wire touch screen is notconnected to the interface circuit 100, then the process proceeds tostep 158. At step 158, it is determined whether a 7-wire touch screen isconnected or whether another type of touch screen is connected. FIG. 5Cshows the configuration of the analog switch matrix 104 during step 158.The following table summarizes the operation of the analog switch matrix104 during step 158 and steps 154-156 for a 7-wire touch screen:

STEP REGISTER EFFECT TEST RESULT 158 0408601 Pull X+ high, Short ADCHigh = Other sX+ to VSS conversion type of touch on X+ screen connectedLow = 7-wire touch screen connected (5 wire with feedback) 154 0401601Pull X+ high, Short check that Operational X− to VSS X+ is low 1540402601 Pull X+ high, Short check that Operational Y+ to VSS X+ is low154 0404601 Pull X+ high, Short check that Operational Y− to VSS X+ islow 154 0408601 Pull X+ high, Short check that Operational sX+ to VSS X+is low 154 0410601 Pull X+ high, Short check that Operational sX− to VSSX+ is low 156 0420601 Pull X+ high, Short ADC Low = touch sY+ to VSSconversion screen pressed on X+ or shorted High = No touch screen press

If a 7-wire touch screen is connected, then the X+ terminal 120 ispulled low because the only touch screen types that have sX+ and sX−connected are the 7-wire and 8-wire touch screens, and the 8-wire touchscreen has already been eliminated. As a result, when the switch matrix104 is configured as shown in FIG. 5C, the voltage at the X+ terminal120 can be measured using the A/D converter 102 to determine whether an7-wire touch screen is connected.

If a 7-wire touch screen is connected, then the process proceeds to step154, where it is determined whether the touch screen is operatingproperly. The various configurations for the analog switch matrix 104are set forth in the table above. If all the conditions in the table aremet, then the touch screen is operating properly; otherwise, the touchscreen is not operating properly.

Next, at step 156, it is determined whether the touch screen is pressed.To perform this test, the X+ terminal 120 is pulled high and the wiperterminal 132 is connected to the ground terminal, and it is determinedwhether the X+ terminal 120 is high or low (i.e., whether the X-axislayer is touching the wiper layer). If the X+ terminal 120 is low, thenthe touch screen is pressed (although an alternative reason may be thatthe touch screen is shorted). If the X+ terminal 120 is high, then thetouch screen is not pressed.

If it is determined at step 158 that an 7-wire touch screen is notconnected to the interface circuit 100, then the process proceeds tostep 160. At step 160, it is determined whether a 4-wire touch screen isconnected or whether a 5-wire touch screen is connected. The followingtable summarizes the operation of the analog switch matrix 104 duringstep 160:

STEP REGISTER EFFECT TEST RESULT 160 0404601 Pull X+ high, ADC High =4-wire Short Y− to VSS conversion on touch screen X+ connected Low =4-wire touch screen (pressed or shorted) or 5- wire touch screenconnected 160 0402601 Pull X+ high, ADC Conversion Short Y+ to VSSconversion on value (A < C X+: voltage A and B < C and 160 0600601 PullX+ high, ADC D < F and E < Short Y− to VSS conversion on F) = 5-wire X+:voltage B touch screen 160 0401601 Pull X+ high, ADC Conversion Short X−to VSS conversion on value (A > C X+: voltage C or B > C or 160 0800E04Pull Y+ high, ADC D > F or E > Short X+ to VSS conversion on F) = 4-wireY+: voltage D touch screen 160 0801604 Pull Y+ high, ADC Short X− to VSSconversion on Y+: voltage E 160 0804604 Pull Y+ high, ADC Short Y− toVSS conversion on Y+: voltage F

The first step is to determine if a 4-wire touch screen can be directlydetected. This is done by determining whether the X-axis and Y-axislayers of the screen are connected. In the case of a 5-wire touchscreen, the same layer is used for both the X-axis and the Y-axis, andtherefore the X+ terminal 18 and the Y-terminal 32 are resistivelyconnected. In the case of a 4-wire touch screen, the X-axis and Y-axislayers are different, and therefore connecting the Y-axis layer toground will only pull the x-axis layer low if the touch screen is beingpressed. Although this is also true for 8-wire touch screens, 8-wiretouch screens have already been eliminated in step 152.

As a result, if the X+ terminal 120 is high, then a 4-wire touch screenis connected. If the X+ terminal 120 is low, then a 4-wire screen may beconnected and pressed, or a 5-wire screen may be connected. In thisevent, the remaining configurations of the table above are utilized. Byusing the internal pull-up resistors, the analog switch array 104 can beconfigured to perform relative impedance measurements. If a 5-wire touchscreen is connected, the resistance between any two adjacent corners ofthe touch screen will be less than the resistance diagonally across thetouch screen. Because of the way X+/X− and Y+/Y− are connected, this isexactly opposite of a pressed 4-wire touch screen. In a pressed 4-wiretouch screen, depending on where the press is occurring, the impedancefrom X+ to Y+ will be greater than X+ to X−, X+ to Y− will be greaterthan X+ to X−, Y+ to X+ will be greater than Y+ to Y−, or Y+ to X− willbe greater than Y+ to Y−. One of these OR'ed conditions will be true(and they may all be true because the contact resistance is usuallyfairly high compared to the indium tin oxide layer resistance). As aresult, a determination can be made whether a 4-wire touch screen or a5-wire touch screen is connected based on the relative impedancecomparisons set forth above.

Regardless whether a 4-wire or 5-wire touch screen is connected, theprocess proceeds to step 154 where it is determined whether the touchscreen is operating properly. After that, at step 156, it is determinedwhether the touch screen is pressed. The following table summarizes theoperation of the analog switch matrix 104 during steps 154-156 for a4-wire touch screen:

STEP REGISTER EFFECT TEST RESULT 154 0401601 Pull X+ high, Short Checkthat Operational X− to VSS X+ is low 154 0804604 Pull Y+ high, Shortcheck that Operational Y− to VSS Y+ is low 154 0402601 Pull X+ high,Short ADC Low = touch Y+ to VSS conversion screen pressed on X+ orshorted High = No touch screen press

The following table summarizes the operation of the analog switch matrix104 during steps 154-156 for a 5-wire touch screen:

154 0401601 Pull X+ high, Short check that Operational X− to VSS X+ islow 154 0402601 Pull X+ high, Short check that Operational Y+ to VSS X+is low 154 0404601 Pull X+ high, Short check that Operational Y− to VSSX+ is low 156 0420601 Pull X+ high, Short ADC Low = touch sY+ to VSSconversion screen pressed on X+ or shorted High = No touch screen pressReferring now to FIG. 4B, a second method for determining a touch screentype is illustrated. The second method is digital detection method thatavoids using the A/D converter 102. False A/D converter readings canoccur due to background noise, and other problems. For example, somedelta sigma converters produce invalid samples during resynchronization.An analog algorithm may require sampling and averaging to reject noiseand false readings. In addition, when detecting differences between a5-wire touch screen and a pressed 4-wire touch screen for example,timing of the algorithm can be critical in the presence of intermittentor bouncing contact. Although some re-sampling may be required, adigital method can help to avoid potential timing and sampling issuesduring the algorithm.

At step 172, it is first determined whether a touch screen is connectedto the interface circuit 100. The first two parts of this step ensurethat the Touch Detect circuit is working. The following table summarizesthe operation of the analog switch matrix 104 during step 172:

STEP REGISTER EFFECT TEST RESULT 172 0000800 Short X+ to VSS Check High= Touch_Detect Operational bit: 172 0040000 Pull X+ high Check Low =Touch_Detect Operational bit: 172 047F000 Pull X+ high, Short Check Low= No X−, Y+, Y−, sX+, Touch_Detect touch screen sX−, sY+, sY− to bit:connected VSS High = touch screen connectedThe operation is similar to the operation at step 150 as describedabove, except that the X+ terminal 120 is measured at the output of theinverting logic gate 106.

Assuming a touch screen is connected, it is next determined at step 174whether a 4-wire or 8-wire touch screen is connected, or whether a5-wire or 7-wire touch screen is connected. In this step, the Y+ and X+terminals are first manually shorted together at the touch screenconnector. The following table summarizes the operation of the analogswitch matrix 104 during step 174:

STEP REGISTER EFFECT TEST RESULT 174 0840605 Pull Y+ high, Short CheckLow = 5- sY− to VSS Touch_Detect wire or 7- bit: wire touch screenconnected High = 8- wire or 4- wire touch screen connected

If step 174 determines that a 4-wire or an 8-wire touch screen isconnected (instead of a 5-wire or a 7-wire touch screen), then theprocess proceeds to step 176, where it is determined whether a 4-wiretouch screen is connected or whether an 8-wire touch screen isconnected. The following table summarizes the operation of the analogswitch matrix 104 during step 176:

STEP REGISTER EFFECT TEST RESULT 176 0820605 Pull Y+ high, Short CheckLow = 4- sY+ to VSS, Short Touch_Detect wire touch Y+ and X+ bit: screentogether connected High = 8- wire touch screen connected

Regardless whether a 4-wire touch screen or an 8-wire touch screen isconnected, the process proceeds to steps 178 and 180 where it isdetermined whether the touch screen is operating properly and whetherthe touch screen is pressed. The following table summarizes theoperation of the analog switch matrix 104 during step 178-180 for a4-wire touch screen:

STEP REGISTER EFFECT TEST RESULT 178 0401000 Pull X+ high, Check High =Short X− to VSS Touch_Detect Operational bit: 178 0804005 Pull Y+ high,Check High = Short Y− to VSS, Touch_Detect Operational Short Y+ and bit:X+ together 178 0404005 Pull X+ high, Short Check High = Y− to VSS,Short Touch_Detect Operational Y+ and X+ bit: together 180 0402000 PullX+ high, Short Check High = Y+ to VSS Touch_Detect touch screen bit:pressed or shorted Low = No touch screen pressThe following table summarizes the operation of the analog switch matrix104 during step 178-180 for an 8-wire touch screen:

STEP REGISTER EFFECT TEST RESULT 178 0401000 Pull X+ high, Short CheckHigh = X− to VSS Touch_Detect Operational bit: 178 0408000 Pull X+ high,Short Check High = sX+ to VSS Touch_Detect Operational bit: 178 0410000Pull X+ high, Short Check High = sX− to VSS Touch_Detect Operationalbit: 178 0804005 Pull Y+ high, Short Check High = Y− to VSS, ShortTouch_Detect Operational Y+ and X+ bit: together 178 0820005 Pull Y+high, Short Check High = sY+ to VSS, Short Touch_Detect Operational Y+and X+ bit: together 178 0840005 Pull Y+ high, Short Check High = sY− toVSS, Short Touch_Detect Operational Y+ and X+ bit: together 180 0402000Pull X+ high, Short Check High = touch Y+ to VSS Touch_Detect screenbit: pressed or shorted Low = No touch screen pressIf it is determined at step 174 that a 5-wire or 7-wire touch screen isconnected (instead of a 4-wire or an 8-wire touch screen), then theprocess proceeds to step 182, where it is determined whether a 5-wiretouch screen is connected or whether an 7-wire touch screen isconnected. The following table summarizes the operation of the analogswitch matrix 104 during step 182:

STEP REGISTER EFFECT TEST RESULT 182 0408000 Pull X+ high, Short CheckLow = 5- sX+ to VSS Touch_Detect wire touch bit: screen connected High =7- wire touch screen connected (5 wire with feedback)

Regardless whether a 5-wire touch screen or an 7-wire touch screen isconnected, the process proceeds to steps 178 and 180 where it isdetermined whether the touch screen is operating properly and whetherthe touch screen is pressed. The following table summarizes theoperation of the analog switch matrix 104 during step 178-180 for a5-wire touch screen:

STEP REGISTER EFFECT TEST RESULT 178 0401000 Pull X+ high, Short CheckHigh = X− to VSS Touch_Detect Operational bit: 178 0402000 Pull X+ high,Short Check High = Y+ to VSS Touch_Detect Operational bit: 178 0404000Pull X+ high, Short Check High = Y− to VSS Touch_Detect Operational bit:180 0420000 Pull X+ high, Short Check High = sY+ to VSS Touch_Detecttouch screen bit: pressed or shorted Low = No touch screen pressThe following table summarizes the operation of the analog switch matrix104 during step 178-180 for a 7-wire touch screen:

STEP REGISTER EFFECT TEST RESULT 178 0401000 Pull X+ high, Short CheckHigh = X− to VSS Touch_Detect Operational bit: 178 0402000 Pull X+ high,Short Check High = Y+ to VSS Touch_Detect Operational bit: 178 0404000Pull X+ high, Short Check High = Y− to VSS Touch_Detect Operational bit:178 0408000 Pull X+ high, Short Check High = sX− to VSS Touch_DetectOperational bit: 178 0410000 Pull X+ high, Short Check High = sX− to VSSTouch_Detect Operational bit: 180 0420000 Pull X+ high, Short Check High= sY+ to VSS Touch_Detect touch screen bit: pressed or shorted Low = Notouch screen press

In the above examples, infinite impedance (open circuit) and relativeimpedance sensing techniques are used to test touch screen resistances.Similar techniques could also be applied to perform other types ofimpedance sensing, for example, in connection with capacitive touchscreens. Various capacitance sensing techniques could be used todistinguish between various types of capacitive touch screens and/or todistinguish capacitive touch screens from resistive touch screens.

3. Touch Screen Data Processing

Once a determination has been made regarding the touch screen type towhich the interface circuit 100 is connected, various values are writtenin the registers 112-118 in accordance with the touch screen type thathas been detected.

The following table shows the values stored in the registers 112-118 foreach of the four types of touch screens.

DETECT DISCHARGE XSAMPLE YSAMPLE 4-wire touch 0402608 007FE0C 00F960C017C603 screen 5-wire touch 0420620 007FE20 01DD620 02DB620 screen7-wire touch 0420620 307F820 31DD020 32DB020 screen 8-wire touch 0402608007FE0C 308100C C104003 screenThe values written in the registers 112-118 customize an otherwisegeneric scanning process (generic in the sense that it can be used withmultiple types of touch screens) for use with the particular type oftouch screen actually connected to the touch screen interface circuit100. Because the process is otherwise generic, it is possible to use acommon data processing path regardless of which touch screen type isused.

FIG. 6 is a flowchart that illustrates the preferred scanning process.While the process of FIG. 6 is usable in connection with any form ofoperator interface, the process of FIG. 6 is particularly useful inconnection an interface that emulates a hardware mouse by receivingoperator inputs and moving a mouse pointer across a touch screen inresponse. Although the mouse pointer in a Windows™ interface is often anarrow that appears to point to a location, other shapes are alsoextremely common. Herein, the term “mouse pointer” is used to refer toany graphic marker on a display that is intended to identify a locationon the display.

The process of FIG. 6 is preferably implemented using digital signalprocessing circuitry that is not part of the microprocessor 86 of thesystem-on-chip integrated circuit 70. This allows the touch screen to beserviced by a device other than the microprocessor, thereby reducingmicroprocessor overhead. Even more preferably, the process of FIG. 6 ispreferably implemented using discrete logic circuitry (as opposed toanother microprocessor). The output of the discrete logic circuitry isan event notification, preferably in the form of a hardware interruptprovided to the microprocessor 86, which notifies the microprocessor 86that the mouse pointer has moved by at least a predetermined amount, andprovides the microprocessor 86 with updated location information. As aresult, the microprocessor 86 is interrupted only when touch screenmovement is sufficiently significant. Therefore, intervention of themicroprocessor 86 in the scanning process is minimized.

FIG. 7 is a block diagram of a logic circuit 250 that is used toimplement the computational aspects of the process embodied in theflowchart of FIG. 6. The logic circuit 250 is part of the touch screeninterface circuit 100. The logic circuit 250 preferably performs allsampling, averaging, and range checking for samples acquired by the A/Dconverter 102 from the touch screen sensor circuitry. The sequentialaspects of the process of FIG. 6 are implemented in a state machine 251.In addition to controlling the overall sequence of operations in FIG. 7,the state machine 251 is also used to program the analog switch matrixwith values from the registers 112-118 as the process proceeds. Theindividual states of the state machine 251 track the steps of the flowchart of FIG. 6 and therefore are not separately shown. In this regard,it may be noted that a circuit layout for the entire discrete logiccircuit 250 including the state machine 251 may be generated using ahardware description language (HDL) such as verilog of VHDL (VHASIC(Very High level ASIC) Hardware Description Language).

If desired, provision may also be made to disable the touch screencircuitry of FIG. 7 and allow the microprocessor 86 to directly controlthe A/D converter 102 and the analog switch matrix 104. This allows forthe implementation of additional scanning algorithms if desired.Assuming the microprocessor 86 does not directly control the A/Dconverter 102 and the analog switch matrix 104, then theresponsibilities of the microprocessor 86 in the scanning process aresimply to load all of the setup registers for the touch array scanningand enable the state machine 251 during initialization, and then respondto incoming event notifications during normal operation. The logiccircuit 250 is preferably responsible for scanning the touch screen andacquiring data samples, verifying that the deviation in the sample setis less than a predetermined amount, averaging the samples to determinethe X and Y locations of the touch, verifying that any movement in thetouch location is not so large as to be unrealistic, and verifying thatany movement is large enough to issue an event notification to themicroprocessor 86.

For all touch screen types, the touch screen X and Y axis positioningare preferably linear so that all algorithms (described below) havelinear operation characteristics. In other words, the voltage that issampled by the A/D converter 102 is preferably linearly related to theX-position or the Y-position of the touch, depending on which axis isbeing scanned. Thus, a minimum sample voltage corresponds to a minimumposition along the X-axis, a maximum sample voltage corresponds to amaximum position along the X-axis, and there is a linear relationshipbetween voltage and position between these two extremes. For 8-wire and4-wire touch screens, this is normally the case by virtue of the mannerin which these touch screens are constructed. Most 5-wire and 7-wiretouch screens are constructed with proprietary compensation techniquesand are sufficiently close to linear to produce acceptable results. Forthose that produce non-linear results, the returned values can beadjusted in firmware in conventional fashion to determine screenposition.

The process begins at a touch detect step 202 in which the system waitsfor a touch press. The switches SW0-SW27 in the touch detect step 202are controlled by the value in the DETECT register 112. Theconfiguration of the analog switch matrix in step 202 for a 4-wire touchscreen is shown in FIG. 8A. The touch press signal is generated at theoutput of the inverting logic gate 106. The process stays at the touchdetect step 202 until a touch is detected, at which point the process tothe next step.

At step 204, the X-axis is scanned. The first step to scanning theX-axis is to discharge the touch screen, wait for a predeterminedsettling time to elapse, apply a voltage to scan the X-axis, and thenwait for another predetermined settling time to elapse. This sequence ofevents allows for any residual voltage in the touch screen sensorcircuitry to be discharged and for the touch screen sensor circuitry toreach stable operating conditions after a scanning voltage is appliedand before samples are acquired. FIG. 8B shows the configuration of theanalog switch matrix 104 for a 4-wire touch screen to discharge thetouch screen sensor circuitry. FIG. 8C shows the configuration of theanalog switch matrix 104 for a 4-wire touch screen to apply a voltage tothe touch screen sensor circuitry to scan the X-axis.

The A/D converter 102 begins acquiring samples after the scanningvoltage is applied and after the touch screen sensor circuitry reachesstable operating conditions. To allow a simple division to beimplemented as described below, the number of samples taken ispreferably either 4, 8, 16, or 32. Each sample is a voltage sampleacquired from the X+ bus bar (e.g., if a 4-wire touch screen is beingscanned). However, since voltage and position are linearly related aspreviously described, each sample also represents a particularX-position on the screen. Ideally, the samples should be very closetogether (that is, the deviation should be small); if they are not, thesample set is discarded as described below.

As the samples are acquired during step 204, the maximum sample value,the minimum sample value, and an average sample value are determined andstored. As previously mentioned, the calculations described in theflowchart of FIG. 6 are performed by the discrete logic circuitry ofFIG. 7. As shown therein, the A/D converter 102 samples the analogvoltages acquired via the analog switch matrix 104 (see FIG. 3). Thesample acquired by the A/D converter 102 is provided to a MIN sampleregister 252, a MAX sample register 254, and multiplexors 256 and 258.The MIN register 252 is initialized to a value of 4095 and the MAXregister 254 is initialized to a value of zero. When the first sample isacquired, the first sample is passed to the comparator 260 by themultiplexor 258. At the same time, the value in the MIN sample register252 is passed to the comparator 260 by the multiplexor 256. Thecomparator 260 compares the first sample to the value in the MIN sampleregister 252. In the illustrated embodiment, the A/D converter 102 is atwelve bit A/D converter, and therefore the output of the A/D convertercannot exceed 4095. Therefore, the first sample is lower than theinitial value stored in the MIN sample register 252, and the firstsample replaces the value stored in the MIN sample register 252.Thereafter, the first sample is also provided to the multiplexor 256 andpassed to the comparator 260. At the same time, the value in the MAXsample register 254 is passed by the multiplexor 258 to the comparator260. The comparator 260 compares the value stored in the MAX sampleregister 254 with the first sample. Since the MAX sample register 254 isinitialized to zero, the first sample is greater than the value storedin the MAX sample register, and the first value replaces the valuestored in the MAX sample register 254. Thereafter, as new samples areacquired, the new samples are compared with the values stored in the MINand MAX sample registers 252 and 254, and after all of the samples havebeen acquired, the minimum sample will be stored in the MIN sampleregister 252, and the maximum sample will be stored in the MAX sampleregister 254.

In addition to determining the minimum and maximum sample values, thecircuitry also determines an average sample value. To this end, as thesamples are acquired, the samples are also provided to an adder 264which cooperates with an accumulate and shift register circuit 266. Theaccumulate and shift register 266, which is initially set equal to zero,adds each sample to the previously acquired samples. When all of thesamples have been acquired, the accumulate and shift register 266outputs a value that is equal to the summation of all acquired samples.The resulting value is shifted by 2, 3, 4, or 5 places to divide by thenumber of samples. This is achieved using the tap circuit 267, whichreceives a 17 bit input and outputs only the twelve most significantbits (i.e., for division by 32). In other words, if thirty-two (i.e.,2⁵) samples are acquired, then discarding the first five bits of theoutput of the accumulate and shift register 266 effectively divides theoutput of the register 266 by thirty-two and produces an average samplevalue. The average sample value is then considered to be the value thatdescribes the X-position of the touch.

At step 206, it is determined whether the difference between the maximumand minimum X samples is less than a predetermined maximum deviation. Inother words, as previously mentioned, all of the acquired samples shouldindicate that the touch occurred at approximately the same location onthe touch screen, otherwise the data set as a whole is suspect andshould be discarded. This range checking function allows a data set tobe screened for erroneous data points (possibly caused by noise) thatwould adversely affect an average value.

It may be noted that, when the analog switch matrix 104 is in theconfiguration shown in FIG. 8A, relatively little power is dissipated ascompared to when the analog switch matrix 104 is in a configurationusable for scanning (as in FIGS. 8C and 8D, discussed below). When theswitch matrix is in a scanning configuration, current flows to theX-axis and Y-axis resistive layers (i.e., in the case of a 4-wire or8-wire touch screen). Specifically, an initial current flows when thescanning voltage is first applied, causing a charge to be established onthe X-axis and Y-axis resistive layers (which in combination initiallybehave as a capacitor). Once the charge is established, current alsoflows from the X+ bus bar to the X− bus bar when a scanning signal isapplied to scan the X-axis, and from the Y+ bus bar to the Y− bus barwhen a scanning signal is applied to scan the Y-axis. In the case of a5-wire touch screen, current flows between each of the four terminals.This current flow in turn causes power to be dissipated. In contrast,when the analog switch matrix 104 is in a touch detect configuration (asin FIG. 8A), relatively little or no current flows to the X-axis andY-axis layers from the analog switch matrix 104 (as compared to thecurrent that flows while the analog switch matrix 104 is inconfiguration shown in FIGS. 8C and 8D). Therefore, relatively little orno power is dissipated by the X-axis and Y-axis resistive layers (ascompared to the power that is dissipated while the analog switch matrix104 is in the configuration shown in FIGS. 8C and 8D).

In practice, in FIG. 7, step 206 is performed in the following manner:First, the value stored in the MIN register 252 is subtracted from thevalue stored in the MAX register 254. This is accomplished by providingthe value in the MIN sample register 252 to a multiplexor 272 andproviding the value stored in the MAX sample register 254 to amultiplexor 270. The multiplexors 270 and 272 pass the maximum andminimum sample values, respectively, to a subtractor circuit (or anyother form of comparator circuit) 274. The difference is then comparedto the predetermined maximum deviation XDEV stored in the register 280.This is achieved by providing the output of the subtractor circuit 274to a multiplexor 276 which passes the difference to a comparator 278.The comparator 278 compares the difference to the value XDEV provided bya deviation register 280 by way of a multiplexor 282. If the rangeexceeds the deviation allowed, the results are disregarded and the logiccircuit 250 starts over with initialization and generating a new Xsample set.

At step 208, it is determined whether an XINT flag is set. On theinitial pass through the process of FIG. 6, the XINT flag is not set andthe process proceeds to step 210. As will become apparent, this flag isset when the process proceeds from step 210 to step 212, allowing step210 to be skipped thereafter.

At step 210, a comparison is made between the new X average sample value(X) (that is, the average X sample value determined in step 204) and thelast valid X average sample value (XLAST) (that is, the average X sampledetermined during the previous successful iteration of step 204).Specifically, the difference (X-XLAST) between these two values iscompared against the XMIN value stored in the XMIN register 290. In FIG.7, this step is performed by providing the output of the tap circuit 267to the subtractor circuit 274 by way of the multiplexor 272, and byproviding the value stored in the LAST X register 286 to the subtractorcircuit 274 by way of the multiplexor 270. The output of the subtractorcircuit 274 is then provided to the comparator 278 by way of themultiplexor 282. The comparator 278 compares the difference to the valuestored in the XMIN register 290, which is received at the comparator 278by way of the multiplexor 276.

If the difference between the new X value (X) and the last X value(XLAST) is less than the XMIN value, then this indicates that themovement in the X direction is not significant enough to warrantalerting the microprocessor 86. Therefore, the process proceeds to step224 (discussed below), which is the beginning of the scanning processfor the Y-axis.

If the difference between the new X value (X) and the last X value(XLAST) is not less than the XMIN value, then this indicates that themovement in the X direction is significant enough to warrant alertingthe microprocessor 86 (that is, so long as the movement in theY-direction is also significant enough to warrant alerting themicroprocessor, as discussed below). The process in this event proceedsto step 212, where the difference between the new X value (X) and thelast X value (XLAST) is compared to the XMAX value in the XMAX register292. The purpose of this step is to verify that any movement in thetouch location is not so large as to be unrealistic.

In FIG. 7, step 212 is performed by comparing the output of thesubtractor circuit 274 (X-XLAST) to the value stored in the XMAXregister 292, which is received by way of the multiplexor 282. If thedifference is greater than XMAX, it is assumed that this distance is toofar for a touch input to possibly move in the short scan time intervaland that the key press is invalid. However, at step 214, the new X valueis stored as the LAST X register (that is, XLAST is set equal to X) incase a truly new location was determined. The XINT flag is also set tocause the algorithm to skip step 210 on consecutive sample sets. Thisflag will also cause a processor interrupt after valid X and Y sampleshave been established. The algorithm then starts over discharging, andsampling a new X-axis value.

If the difference in step 212 is less than the XMAX, then the processproceeds to step 216. At step 216, just as in step 214, the new X valueis stored as the LAST X register (that is, XLAST is set equal to X) andthe XINT flag is also set to cause the algorithm to skip step 210 onconsecutive sample sets. After step 216, unlike after step 214, theprocess then proceeds to step 224, where scanning of the Y-axis begins.In the exemplary process of FIG. 6, both the XINT flag and the YINT flagmust be set in order for an event notification (such as a hardwareinterrupt) to be issued to the microprocessor 86.

Except to the extent that a different axis is scanned, scanning of theY-axis is identical to the scanning of the X-axis, and therefore theprocess will be described more briefly. The circuitry in FIG. 7 is usedas previously described, except that registers 294, 296 and 298 are usedinstead of registers 286, 290, and 298, respectively.

Scanning of the Y-axis begins at step 224. FIG. 8D shows theconfiguration of the analog switch matrix 104 for a 4-wire touch screento apply a voltage to the touch screen sensor circuitry to scan theY-axis. Again, 4, 8, 16 or 32 samples are acquired, and the maximumsample value, the minimum sample value, and an average sample value aredetermined and stored.

At step 226, it is determined whether the difference between the maximumand minimum Y samples is less than a predetermined maximum deviation. Aspreviously described, this range checking function allows a data set tobe screened for erroneous data points (possibly caused by noise) thatwould adversely affect an average value. If the range exceeds thedeviation allowed, the results are disregarded and the logic circuit 250starts over with initialization and generating a new sample set at step224.

At step 228, it is determined whether a YINT flag is set. On the initialpass through the process of FIG. 6, the YINT flag is not set and theprocess proceeds to step 210. The YINT flag serves the same purpose asthe XINT flag as described above, except that it is used in connectionwith the Y-axis portion of the process of FIG. 6.

At step 230, a comparison is made between the new Y average sample value(Y) (that is, the average Y sample value determined in step 224) and thelast valid Y average sample value (YLAST) (that is, the average Y sampledetermined during the previous iteration of step 204). Specifically, thedifference (Y-YLAST) between these two values is compared against a YMINvalue. If the difference (Y-YLAST) is less than the YMIN value, thenthis indicates that the movement in the Y direction is not significantenough to warrant alerting the microprocessor. Therefore, the processproceeds to step 236 to determine whether the XINT flag is set. If theXINT flag is set, then at step 238 the new Y value is stored as the LASTY register (that is, YLAST is set equal to Y), the microprocessor isnotified, and the new X and Y values are read by the microprocessor andthe XINT and YINT flags are cleared. Thereafter, the process returns tostep 202 and waits for another touch press. Otherwise, if the XINT flagis not set at step 236, then the process proceeds to step 204 to rescanto X axis.

If the difference (Y-YLAST) is not less than the YMIN value, then thisindicates that the movement in the Y direction is significant enough towarrant alerting the microprocessor. The process in this event proceedsto step 232, where the difference between the new Y value (Y) and thelast Y value (YLAST) is compared to the YMAX value. The purpose of thisstep is to verify that the distance of Y movement is not so large as tobe unrealistic given the short scan time interval. If the difference instep 232 is greater than YMAX, then at step 234 the new Y value isstored as the LAST Y register (that is, YLAST is set equal to Y) in casea truly new location was determined. The YINT flag is also set to causethe algorithm to skip step 230 on consecutive sample sets.

If the difference in step 232 is less than the YMAX, then the processproceeds to step 238. At step 238, just as in step 214, the new Y valueis stored as the LAST Y register (that is, YLAST is set equal to Y) andthe YINT flag is also set. When either interrupt flag is set, themicroprocessor is notified, and the new X and Y values are read by themicroprocessor and the XINT and YINT flags are cleared. Thereafter, theprocess returns to step 202 and waits for another touch press.

As has been described, rather than sending a continuous informationstream to the microprocessor when the touch screen is in use, the logiccircuit 250 interrupts the microprocessor only when touch screenmovement is sufficiently significant in order to minimize interventionof the microprocessor in the scanning process. FIG. 9 presents asimplified graphical representation of this arrangement. As shown inFIG. 9, the values XMIN and YMIN (stored in the registers 290 and 296)define a region 299 that surrounds the current location of a mousepointer 298. The microprocessor 86 is not notified unless a touch isdetected at a location outside the perimeter of the region 299.

4. Exemplary Application

Referring now to FIG. 10, the system-on-chip integrated circuit 70 ofFIG. 2 is usable in a wide array of applications. FIG. 10 illustratesthe system-on-chip integrated circuit 70 employed in an operatorinterface 300 of a legacy configuration for an industrial controlsystem. In addition to the operator interface, the industrial controlsystem comprises a plurality of input and output devices 302, acommunication network 304, a rack-mounted programmable controller system306. The operator interface 300 could also be used in connection withnon-rack mounted devices such as soft PLCs. In addition to thesecomponents, the industrial control system may include a wide array ofadditional components.

The programmable controller system 306 comprises a control module 308.The control module 308 executes a user program to control output statusof the plurality of output devices based on input status informationfrom the plurality of input devices.

The programmable controller system 306 and the operator interface 300,which may also be rack-mounted, are coupled to each other by way of thecommunication network 304. The operator interface 300 includes a touchscreen that includes a display 310 and a touch screen sensor system suchas shown in FIGS. 1A-1D. The display 310 displays the input and outputstatus of at least a portion of the plurality of input and outputdevices 302. The touch screen may, for example, be a 4-wire, 5-wire,7-wire, or 8-wire touch screen, each of which uses a different sensorsystem as previously discussed.

The operator interface 300 is provided with a system-on-chip integratedcircuit 70. The integrated circuit 70 therefore includes the circuitrydiscussed above in connection with the preferred touch screen interfacecircuit 100, including an analog switch matrix 104, digital signalprocessor, communication network interface, display interface, and so on(see FIGS. 2-3 and 7). As previously discussed, the analog switch matrix104 is coupled to the touch screen sensor system and has a plurality ofdifferent configurations. The analog switch matrix receives power supplyinputs (V_(DD), V_(SS)) and selectively supplies these input to thetouch screen sensor system based on the configuration of the analogswitch matrix 104. The digital signal processor determines the touchscreen type based on the response of the touch screen to the input inthe plurality of different configurations of the analog switch matrix,for example, as discussed in connection with FIGS. 4 and 5A-5D. Thedigital signal processor can also process the input data samples fromthe touch screen, for example, as discussed above in connection withFIGS. 6-7.

Referring now to FIG. 11, FIG. 11 illustrates the system-on-chipintegrated circuit 70 employed in an operator interface 400 that mayalso be used as a soft controller in the industrial control system. Inaddition to the operator interface, the industrial control system alsocomprises a plurality of input and output devices 401, and multiple dataor control networks 402. In addition to these components, the industrialcontrol system may include a wide array of additional components.

In addition to providing operator controls and displaying status, theoperator interface 400 also executes a user program to control outputstatus of the plurality of output devices based on input statusinformation from the plurality of input devices. Thus, the operatorinterface 400 of FIG. 11 combines the functions of the programmablecontroller system 306 and the operator interface 300 of FIG. 10 in asingle integrated package.

The operator interface 400 preferably includes a touch screen sensorsystem such as shown in FIGS. 1A-1D. The operator interface 400 may ormay not contain a dynamic display 410 that will display the input andoutput status of at least a portion of the plurality of input and outputdevices 401. As an alternative to a display, a fixed graphic underlaymay be used to represent the plurality of input and output devices 401.In either case, the touch plane operator input device may, for example,be a 4-wire, 5-wire, 7-wire, or 8-wire device, each of which uses adifferent sensor system as previously discussed.

The operator interface 400 is provided with a system-on-chip integratedcircuit 70. The integrated circuit 70 therefore includes the circuitrydiscussed above in connection with the preferred touch screen interfacecircuit 100, including an analog switch matrix 104, digital signalprocessor, communication network interface, display interface, and so on(see FIGS. 2-3 and 7). As previously discussed, the analog switch matrix104 is coupled to the touch screen sensor system and has a plurality ofdifferent configurations. The analog switch matrix receives power supplyinputs (V_(DD), V_(SS)) and selectively supplies these input to thetouch screen sensor system based on the configuration of the analogswitch matrix 104. The digital signal processor determines the touchscreen type based on the response of the touch screen to the input inthe plurality of different configurations of the analog switch matrix,for example, as discussed in connection with FIGS. 4 and 5A-5D. Thedigital signal processor can also process the input data samples fromthe touch screen, for example, as discussed above in connection withFIGS. 6-7.

In addition to the applications illustrated in FIG. 10 and FIG. 11,numerous additional applications are also possible. For example, theintegrated circuit 70 can be used in connection with personal digitalassistants and other palm-held computers, as well as internet accessdevices, laptop computers, point of sale terminals, input only touchpads for larger displays or virtual headsets, consumer appliances,entertainment systems and other commercial and industrial applications.Indeed, in FIG. 10, the operator interface 300 may be coupled to theinternet to permit firmware revisions to be downloaded from amanufacturer of the programmable controller system.

Many other changes and modifications may be made to the presentinvention without departing from the spirit thereof. The scope of theseand other changes will become apparent from the appended claims.

1. An integrated circuit that provides compatibility with a plurality ofa touch plane operator input device, comprising: a microprocessor; and atouch device interface that interfaces the microprocessor to a touchplane operator input device, the touch device interface is compatiblewith a plurality of touch plane operator input devices and automaticallydetects the type of the touch plane operator input device comprising atouch pad, an analog resistive touch screen, a capacitive touch screenand an electrostatic touch screen, the touch device interface furtherautomatically detects type of the analog resistive touch screencomprising a 4-wire touch screen, a 5-wire touch screen, a 7-wire touchscreen, or an 8-wire touch screen, wherein the 5-wire touch screencomprises a wiper terminal, the 7-wire touch screen comprises twovoltage feedback terminals and the 8-wire touch screen comprises fourvoltage feedback terminals.
 2. The circuit of claim 1, the type of thetouch plane operator input device is determined based at least in partupon interface characteristics of the touch plane operator input device.3. The circuit of claim 2, the interface characteristics are determinedbased upon impedance characteristics of the touch plane operator inputdevice.
 4. The system of claim 3, wherein the impedance characteristicsof the touch plane operator input device comprise infinite impedance andrelative impedance.
 5. The circuit of claim 2, the interfacecharacteristics are based at least in part upon a size of the touchplane operator input device, wherein the touch plane operator inputdevices having large size include the voltage feedback terminals tocompensate for effects of resistance and temperature drift.
 6. Thecircuit of claim 1, further comprising a digital signal processingcircuit that reduces utilization of the microprocessor, the digitalsignal processing circuit distinguishes significant operator interactionwith the touch plane operator input device from insignificant operatorinteraction with the touch plane operator input device and notifies themicroprocessor when the operator interaction with the touch planeoperator input device is significant.
 7. The circuit of claim 6, thedigital signal processing circuit compares the displacement between afirst touch and a second touch with a minimum value and determines thatthe operator interaction is significant if the displacement is greaterthan the minimum value.
 8. The circuit of claim 6, the digital signalprocessing circuit compares the displacement between a first touch and asecond touch with a maximum value and determines that the operatorinteraction is significant if the displacement is less than the maximumvalue.
 9. The circuit of claim 6, the digital signal processing circuitcompares an x-axis displacement and a y-axis displacement between afirst touch and a second touch with an x-axis minimum value and a y-axisminimum value and determines that the operator interaction issignificant if one of the x-axis displacement is greater than the x-axisminimum value and the y-axis displacement is greater than the y-axisminimum value.
 10. The system of claim 1, wherein the voltage feedbackterminals provide voltage feedback to eliminate effects of resistanceand temperature drift due to large screen size.
 11. A methodology forproviding compatibility for a touch device interface, comprising:determining automatically type of a touch plane operator input devicecomprising a touch pad, an analog resistive touch screen, a capacitivetouch screen and an electrostatic touch screen; determiningautomatically subtype of the touch plane operator input device for theanalog resistive touch screen comprising a 4-wire touch screen, a 5-wiretouch screen, a 7-wire touch screen, or an 8-wire touch screen based atleast in part upon interface characteristics of the touch plane operatorinput device, the interface characteristics being determined based uponimpedance characteristics of the touch plane operator input device; andconfiguring the touch device interface to operate with the touch planeoperator input device.
 12. The method of claim 11, further comprisingdetermining automatically a subtype of the touch plane operator inputdevice based upon at least upon one of impedance characteristics of thetouch plane operator input device, the size of the touch plane operatorinput device and a value of a detect bit.
 13. The method of claim 11,further comprising: determining a first coordinate based upon a firsttouch on the touch plane operator input device; determining a secondcoordinate based upon a second touch on the touch plane operator inputdevice; distinguishing significant inputs to the touch plane operatordevice from insignificant inputs based upon the displacement between thefirst coordinate and the second coordinate; and notifying amicroprocessor when a significant input is detected.
 14. The method ofclaim 13, distinguishing significant inputs further comprises:determining an x-axis displacement between the first coordinate and thesecond coordinate; comparing the x-axis displacement to an x-axisminimum value; if the x-axis displacement is less than the x-axisminimum value: determining a y-axis displacement between the firstcoordinate and the second coordinate; and comparing the y-axisdisplacement to a y-axis minimum value; and ensuring that at least oneof the x-axis displacement is greater than the x-axis minimum value andthe y-axis displacement is greater than the y-axis minimum value. 15.The method of claim 11, further comprising reducing power consumption toextend battery life by waiting in a touch detect mode until a touch isdetected, the touch plane operator input device is substantially free ofcurrent flow in the touch detect mode.
 16. A system that providescompatibility for a touch device interface, comprising: means fordiscovering automatically type of a touch plane operator input devicecomprising a 4-wire analog resistive touch screen, a 5-wire analogresistive touch screen, a 7-wire analog resistive touch screen, or an8-wire analog resistive touch screen based at least in part uponinterface characteristics of the touch plane operator input device;means for configuring the touch device interface to operate with thetouch plane operator input device; means for receiving a firstcoordinate based upon a first touch on the touch plane operator inputdevice; means for receiving a second coordinate based upon a secondtouch on the touch plane operator input device; means fordifferentiating significant inputs to the touch plane operator devicefrom insignificant inputs based upon the displacement between the firstcoordinate and the second coordinate; and means for alerting amicroprocessor when a significant input is detected.
 17. The system ofclaim 16, further comprising means for discovering automatically asubtype of the touch plane operator input device based upon at leastupon one of impedance characteristics of the touch plane operator inputdevice, the size of the touch plane operator input device and a value ofa detect bit.
 18. The system of claim 17, means for differentiatingsignificant inputs further comprises: means for discovering an x-axisdisplacement between the first coordinate and the second coordinate;means for comparing the x-axis displacement to an x-axis minimum value;if the x-axis displacement is less than the x-axis minimum value: meansfor discovering a y-axis displacement between the first coordinate andthe second coordinate; and means for comparing the y-axis displacementto a y-axis minimum value; and means for ensuring that at least one ofthe x-axis displacement is greater than the x-axis minimum value and they-axis displacement is greater than the y-axis minimum value.
 19. Thesystem of claim 16, further comprising means for reducing powerconsumption to extend battery life by waiting in a touch detect modeuntil a touch is detected, the touch plane operator input device issubstantially free of current flow in the touch detect mode.